<template>
  <div class="full flex justify-between align-center boxshadow">
    <div class="menuBox minfill hfill">sadfsadf</div>
    <div class="line-y"></div>
    <div class="maxfill hfill padding-x border-white-x">
      <router-view />
    </div>
  </div>
</template>

<script setup>
import { onMounted,reactive,ref } from "vue";
import Cookies from 'js-cookie';
import { useRouter } from "vue-router";
const router = useRouter()

onMounted(()=>{
  if(!Cookies.get('access')){
    router.replace({path:'/login'},true);
  }
})
</script>
<style lang="scss" scoped>
  .menuBox{
    width:200px;
  }
</style>